﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200026D RID: 621
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueNousEnableRogueTalentCsReq : IMessage<ChessRogueNousEnableRogueTalentCsReq>, IMessage, IEquatable<ChessRogueNousEnableRogueTalentCsReq>, IDeepCloneable<ChessRogueNousEnableRogueTalentCsReq>, IBufferMessage
	{
		// Token: 0x1700082C RID: 2092
		// (get) Token: 0x06001BF5 RID: 7157 RVA: 0x000505E5 File Offset: 0x0004E7E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueNousEnableRogueTalentCsReq> Parser
		{
			get
			{
				return ChessRogueNousEnableRogueTalentCsReq._parser;
			}
		}

		// Token: 0x1700082D RID: 2093
		// (get) Token: 0x06001BF6 RID: 7158 RVA: 0x000505EC File Offset: 0x0004E7EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueNousEnableRogueTalentCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700082E RID: 2094
		// (get) Token: 0x06001BF7 RID: 7159 RVA: 0x000505FE File Offset: 0x0004E7FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueNousEnableRogueTalentCsReq.Descriptor;
			}
		}

		// Token: 0x06001BF8 RID: 7160 RVA: 0x00050605 File Offset: 0x0004E805
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousEnableRogueTalentCsReq()
		{
		}

		// Token: 0x06001BF9 RID: 7161 RVA: 0x0005060D File Offset: 0x0004E80D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousEnableRogueTalentCsReq(ChessRogueNousEnableRogueTalentCsReq other) : this()
		{
			this.talentId_ = other.talentId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001BFA RID: 7162 RVA: 0x00050632 File Offset: 0x0004E832
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousEnableRogueTalentCsReq Clone()
		{
			return new ChessRogueNousEnableRogueTalentCsReq(this);
		}

		// Token: 0x1700082F RID: 2095
		// (get) Token: 0x06001BFB RID: 7163 RVA: 0x0005063A File Offset: 0x0004E83A
		// (set) Token: 0x06001BFC RID: 7164 RVA: 0x00050642 File Offset: 0x0004E842
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TalentId
		{
			get
			{
				return this.talentId_;
			}
			set
			{
				this.talentId_ = value;
			}
		}

		// Token: 0x06001BFD RID: 7165 RVA: 0x0005064B File Offset: 0x0004E84B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueNousEnableRogueTalentCsReq);
		}

		// Token: 0x06001BFE RID: 7166 RVA: 0x00050659 File Offset: 0x0004E859
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueNousEnableRogueTalentCsReq other)
		{
			return other != null && (other == this || (this.TalentId == other.TalentId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001BFF RID: 7167 RVA: 0x00050688 File Offset: 0x0004E888
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TalentId != 0U)
			{
				num ^= this.TalentId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001C00 RID: 7168 RVA: 0x000506C7 File Offset: 0x0004E8C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001C01 RID: 7169 RVA: 0x000506CF File Offset: 0x0004E8CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001C02 RID: 7170 RVA: 0x000506D8 File Offset: 0x0004E8D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TalentId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001C03 RID: 7171 RVA: 0x0005070C File Offset: 0x0004E90C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TalentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001C04 RID: 7172 RVA: 0x0005074A File Offset: 0x0004E94A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueNousEnableRogueTalentCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TalentId != 0U)
			{
				this.TalentId = other.TalentId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001C05 RID: 7173 RVA: 0x0005077B File Offset: 0x0004E97B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001C06 RID: 7174 RVA: 0x00050784 File Offset: 0x0004E984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.TalentId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000BA8 RID: 2984
		private static readonly MessageParser<ChessRogueNousEnableRogueTalentCsReq> _parser = new MessageParser<ChessRogueNousEnableRogueTalentCsReq>(() => new ChessRogueNousEnableRogueTalentCsReq());

		// Token: 0x04000BA9 RID: 2985
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000BAA RID: 2986
		public const int TalentIdFieldNumber = 7;

		// Token: 0x04000BAB RID: 2987
		private uint talentId_;
	}
}
